package com.xin.beauty.controller;

import com.xin.beauty.pojo.vo.DoctorCountVO;
import com.xin.beauty.service.IDoctorService;
import com.xin.beauty.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/chart")
public class ChartController {
    @Autowired
    private IDoctorService doctorService;

    @GetMapping("/selectDoctorCount")
    public Result selectDoctorCount() {//DoctorCountVO是医生负责的项目的数量
        List<DoctorCountVO> list = doctorService.selectDoctorCount();
        return Result.ok(list);
    }
}
